#!/system/bin/sh
channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000000&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv1=${wnresult: 4} 
echo "update channel_list set url='$wncctv1' where id=1;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000002&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv2=${wnresult: 4} 
echo "update channel_list set url='$wncctv2' where id=2;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000003&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv3=${wnresult: 4} 
echo "update channel_list set url='$wncctv3' where id=3;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000004&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv4=${wnresult: 4} 
echo "update channel_list set url='$wncctv4' where id=4;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000006&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv5=${wnresult: 4} 
echo "update channel_list set url='$wncctv5' where id=5;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000007&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv6=${wnresult: 4} 
echo "update channel_list set url='$wncctv6' where id=6;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000008&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv7=${wnresult: 4} 
echo "update channel_list set url='$wncctv7' where id=7;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000009&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv8=${wnresult: 4} 
echo "update channel_list set url='$wncctv8' where id=8;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000010&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv9=${wnresult: 4} 
echo "update channel_list set url='$wncctv9' where id=9;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000011&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv10=${wnresult: 4} 
echo "update channel_list set url='$wncctv10' where id=10;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000060&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv11=${wnresult: 4} 
echo "update channel_list set url='$wncctv11' where id=11;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000063&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv12=${wnresult: 4} 
echo "update channel_list set url='$wncctv12' where id=12;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000061&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv13=${wnresult: 4} 
echo "update channel_list set url='$wncctv13' where id=13;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000064&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv14=${wnresult: 4} 
echo "update channel_list set url='$wncctv14' where id=14;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000062&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv15=${wnresult: 4} 
echo "update channel_list set url='$wncctv15' where id=15;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000005&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv5p=${wnresult: 4} 
echo "update channel_list set url='$wncctv5p' where id=16;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000065&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncctv17=${wnresult: 4} 
echo "update channel_list set url='$wncctv17' where id=17;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000040&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhnjs=${wnresult: 4} 
echo "update channel_list set url='$wnhnjs' where id=20;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000043&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhnds=${wnresult: 4} 
echo "update channel_list set url='$wnhnds' where id=21;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000042&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhnyl=${wnresult: 4} 
echo "update channel_list set url='$wnhnyl' where id=22;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000046&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhngg=${wnresult: 4} 
echo "update channel_list set url='$wnhngg' where id=23;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000044&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhndy=${wnresult: 4} 
echo "update channel_list set url='$wnhndy' where id=24;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000045&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhndsj=${wnresult: 4} 
echo "update channel_list set url='$wnhndsj' where id=25;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000017&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhnws=${wnresult: 4} 
echo "update channel_list set url='$wnhnws' where id=26;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000024&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhbws=${wnresult: 4} 
echo "update channel_list set url='$wnhbws' where id=27;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000022&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wngdws=${wnresult: 4} 
echo "update channel_list set url='$wngdws' where id=28;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000016&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wngxws=${wnresult: 4} 
echo "update channel_list set url='$wngxws' where id=29;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000021&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnjsws=${wnresult: 4} 
echo "update channel_list set url='$wnjsws' where id=30;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000033&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnjxws=${wnresult: 4} 
echo "update channel_list set url='$wnjxws' where id=31;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000023&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wndfws=${wnresult: 4} 
echo "update channel_list set url='$wndfws' where id=32;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000032&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wndnws=${wnresult: 4} 
echo "update channel_list set url='$wndnws' where id=33;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000020&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnzjws=${wnresult: 4} 
echo "update channel_list set url='$wnzjws' where id=34;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000019&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnszws=${wnresult: 4} 
echo "update channel_list set url='$wnszws' where id=35;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000025&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnahws=${wnresult: 4} 
echo "update channel_list set url='$wnahws' where id=36;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000030&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wncqws=${wnresult: 4} 
echo "update channel_list set url='$wncqws' where id=37;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000031&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnscws=${wnresult: 4} 
echo "update channel_list set url='$wnscws' where id=38;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000012&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnynws=${wnresult: 4} 
echo "update channel_list set url='$wnynws' where id=39;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000071&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wngzws=${wnresult: 4} 
echo "update channel_list set url='$wngzws' where id=40;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000013&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhainws=${wnresult: 4} 
echo "update channel_list set url='$wnhainws' where id=41;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel_id=`curl -s  'http://119.39.13.243/mgtv_hnlt_zx/AuthIndex/ApplyPlay?UserId=1&Version=YYS.4.2.30.266.2.HNLT.0.0_Release&VideoId=54308cfc2929b36fb797e24cf0c45212&Mac=1&VideoType=1&BeginTime=20991231111842'`
start="url="
end="&amp;version"
result=$(echo $channel_id |busybox sed "s/.*$start\\(.*\\)$end.*/\\1/")
url=${result: 1} 
chanel=`echo "$url" |busybox sed 's/amp;//g'`
data='20991231'
first=`echo ${chanel:0:98}`
third=`echo ${chanel:113}`
xmws=`echo "$first$data$third"`
echo $xmws
echo "update channel_list set url='$xmws' where id=42;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000070&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wngsws=${wnresult: 4} 
echo "update channel_list set url='$wngsws' where id=43;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000027&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnsdws=${wnresult: 4} 
echo "update channel_list set url='$wnsdws' where id=44;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000034&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhebws=${wnresult: 4} 
echo "update channel_list set url='$wnhebws' where id=45;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000067&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhenws=${wnresult: 4} 
echo "update channel_list set url='$wnhenws' where id=46;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000029&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wntjws=${wnresult: 4} 
echo "update channel_list set url='$wntjws' where id=47;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000018&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnbjws=${wnresult: 4} 
echo "update channel_list set url='$wnbjws' where id=48;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000069&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnshanxi=${wnresult: 4} 
echo "update channel_list set url='$wnshanxi' where id=49;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000066&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnsxws=${wnresult: 4} 
echo "update channel_list set url='$wnsxws' where id=50;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000035&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnjlws=${wnresult: 4} 
echo "update channel_list set url='$wnjlws' where id=51;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000026&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnlnws=${wnresult: 4} 
echo "update channel_list set url='$wnlnws' where id=52;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000028&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnhljws=${wnresult: 4} 
echo "update channel_list set url='$wnhljws' where id=53;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000073&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnnmgws=${wnresult: 4} 
echo "update channel_list set url='$wnnmgws' where id=54;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000072&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnqhws=${wnresult: 4} 
echo "update channel_list set url='$wnqhws' where id=55;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000036&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnjykt=${wnresult: 4} 
echo "update channel_list set url='$wnjykt' where id=56;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

channel=`curl -H 'userMac: 34:85:11:f5:8c:09' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=10000041&retplayurl=1&type=1&playAuth=1'`
wnstart="play_url"
wnend="WNTV"
wnresult=$(echo $channel |busybox sed "s/.*$wnstart\\(.*\\)$wnend.*/\\1/")
wnjyjs=${wnresult: 4} 
echo "update channel_list set url='$wnjyjs' where id=57;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db


fhzw=`curl -H 'userMac: 34:85:11:f5:83:ba' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=3f665f0f5b12405db1bd14d997ebd2c6&retplayurl=1&type=1&playAuth=1' |busybox awk '{a=index($0,"[");b=index($0,"]");print substr($0,a+2,b-a-3)}'`
echo "update channel_list set url='$fhzw' where id=18;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

fhzx=`curl -H 'userMac: 34:85:11:f5:83:ba' 'http://wntv3slave.hunancatv.com:10180/media/get_authority_info?accesstoken=$key&orgseriesid=2d82059145594e2a96764c7b99911706&retplayurl=1&type=1&playAuth=1' |busybox awk '{a=index($0,"[");b=index($0,"]");print substr($0,a+2,b-a-3)}'`
echo "update channel_list set url='$fhzx' where id=19;"| /system/xbin/sqlite3 /data/data/com.yg.zhibo/databases/LiveTv.db

echo "update authentication set value = '073108475978A@tv' where name = 'username';"| /system/xbin/sqlite3 /data/data/com.egjz.auth/databases/info.db
echo "update authentication set value = '073108475978A@tv' where name = 'IPoEUserName';"| /system/xbin/sqlite3 /data/data/com.egjz.auth/databases/info.db